import Vue from "vue";
import Router from "vue-router";
// import HelloWorld from "@/components/HelloWorld";
import blank from "@/views/blank/blank";

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: "/",
            name: "blank",
            component: blank
        },
        {
            //天能学院群二维码上传
            path: "/uploadFile",
            name: "uploadFile",
            component: () => import("@/views/uploadCode/uploadCode")
        },
        {
            path: "/shippingOrder",
            name: "shippingOrder",
            component: () => import("@/views/shippingOrder/layout"),
            children: [
                {
                    //发货单文件上传
                    path: "uploadImg",
                    name: "shippingOrderUploadImg",
                    component: () => import("@/views/shippingOrder/uploadImg")
                }
            ]
        },
        {
            path: "/partNumber",
            name: "partNumber",
            component: () => import("@/views/pc/partNumber/layout"),
            children: [
                {
                    //料号文件上传
                    path: "uploadImg",
                    name: "partNumberUploadImg",
                    component: () => import("@/views/pc/partNumber/uploadImg")
                }
            ]
        },
        {
            path: "/wx",
            name: "wx",
            component: () => import("@/views/wx/layout"),
            children: [
                {
                    //公众号扫码判断是否关注了的中转页，关注会跳到设备绑定页
                    path: "subscribe",
                    name: "wxSubscribe",
                    component: () => import("@/views/wx/subscribe")
                },
                {
                    path: "newProducts",
                    name: "newProducts",
                    component: () => import("@/views/wx/newProducts")
                }
            ]
        },
        {
            path: "/3DCover",
            name: "3DCover",
            component: () => import("@/views/fenmian")
        },
        {
            path: "/3DCoverPC",
            name: "3DCoverPC",
            component: () => import("@/views/pc/fenmian")
        },
        {
            path: "/door",
            name: "door",
            component: () => import("@/views/door/showDoor")
        }
    ]
});
